package com.job.sun;

/**
 * @author 张春阳
 * @version 1.0
 * @since 2022-07-05 17:24:18
 */
public class Student0705 {
     String name ;
     String number;
     int Language;
     int Mathematics;
     int English;
     int PE;


    /**
     *计算总成绩
     * @param a 语文
     * @param b 数学
     * @param c 英语
     * @param d 体育
     * @return
     */
   public int Totalscore(int a,int b,int c,int d){
       return a+b+c+d;
   }

    /**
     * 计算成绩平均值
     * @param a
     * @param b
     * @param c
     * @param d
     * @return  返回成绩最高的科目
     */
   public double average(int a,int b,int c,int d){
       return (a+b+c+d)/4;
   }
//无参
    public Student0705() {
    }

    public Student0705(String name, String number, int language, int mathematics, int english, int PE) {
        this.name = name;
        this.number = number;
        Language = language;
        Mathematics = mathematics;
        English = english;
        this.PE = PE;
    }

    public Student0705(int language, int mathematics, int english, int PE) {
        Language = language;
        Mathematics = mathematics;
        English = english;
        this.PE = PE;
    }
}